﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Xna.Framework;
using System.ComponentModel;

namespace TestXNA
{
    public class MainViewModel : INotifyPropertyChanged
    {
        public int ClockOffset;
        public Vector3 cameraPosition = new Vector3(0.0f, 50.0f, 5000.0f);
        public Vector3 cameraView = Vector3.Zero;
        public Sync sync = null;
        private int _posicion; public int Posicion { get { return _posicion; } set { if (value != _posicion) { _posicion = value; NotifyPropertyChanged("Posicion"); } } }
        public Vector3 modelPosition = Vector3.Zero;

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
